package com.jwsoft.manager.core.dao.mapper;

import com.jwsoft.manager.core.dao.model.EduCompany;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwsoft.manager.core.dao.model.EduhCompany;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* <p>
  * 法人登记基本信息表 Mapper 接口
  * </p>
*
* @author wangtao
* @since 2022-12-28
*/
@Mapper
public interface EduCompanyMapper extends BaseMapper<EduCompany> {

    Integer selectCountByYear(@Param("year") Integer year);

    List<EduCompany> selectByYear(@Param("year") Integer year,@Param("pageSize") Integer pageSize);

    Integer deleteByTaskHistory(@Param("taskDetailId") String taskDetailId);

    Integer selectEncryptionCountByYear(@Param("year") Integer year, @Param("taskDetailId") String taskDetailId);

    List<EduhCompany> selectEncryptionByYear(@Param("year") Integer year, @Param("taskDetailId") String taskDetailId,@Param("pageSize") Integer pageSize);

    List<EduhCompany> queryHistoryCleanCompanyWithEnroll(@Param("year") Integer year, @Param("taskDetailId") String taskDetailId);

    List<EduhCompany> queryCleanCompanyWithEnroll(@Param("year") Integer year, @Param("taskDetailId") String taskDetailId);
}
